﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
namespace PreeRegisterModel
{
    //[XmlType("Request")]
    public class OrderRequestModel
    {
        /// <summary>
        /// 头信息
        /// </summary>
        public Head head { get; set; }
        /// <summary>
        /// 内容信息
        /// </summary>
        public OrderParameterModel body { get; set; }
    }

    //[XmlType("Parameter")]
    public class OrderParameterModel
    {
        public string docid;

        /// <summary>
        /// 接入类型:0序号预约，1分时预约
        /// </summary>
        public string atype { get; set; }
        /// <summary>
        /// 号源序号
        /// </summary>
        public string iid { get; set; }
        /// <summary>
        /// 挂号序号
        /// </summary>
        public string inum { get; set; }
        /// <summary>
        /// 预约号，全局唯一
        /// </summary>
        public string oid { get; set; }
        /// <summary>
        /// 排班标识
        /// </summary>
        public string wid { get; set; }
        /// <summary>
        /// 预约就诊时间  "2011-10-24 10:24"
        /// </summary>
        public string time { get; set; }
        /// <summary>
        /// 身份证
        /// </summary>
        public string card { get; set; }
        /// <summary>
        /// 性别1男2女
        /// </summary>
        public string gender { get; set; }
        /// <summary>
        /// 生日
        /// </summary>
        public string birth { get; set; }
        /// <summary>
        /// 地址
        /// </summary>
        public string addr { get; set; }
        /// <summary>
        /// 类型卡号
        /// </summary>
        public string cid { get; set; }
        /// <summary>
        /// 卡类型1社保卡，3诊疗卡
        /// </summary>
        public string ctype { get; set; }
        /// <summary>
        /// 患者姓名
        /// </summary>
        public string name { get; set; }
        /// <summary>
        /// 患者手机号码
        /// </summary>
        public string tel { get; set; }
        /// <summary>
        /// 患者类别 默认1普通
        /// </summary>
        public string ptype { get; set; }
        /// <summary>
        /// 就诊类型 1.初诊 2.本地复诊 3.本地术后复诊 4.外地复诊 5.外地术后复诊
        /// </summary>
        public string rtype { get; set; }
        /// <summary>
        /// 预定来源，1,12320，2, 12580，3 、app  4无线城市、5网站
        /// </summary>
        public string source { get; set; }
    }


    //[XmlType("Parameter")]
    public class OrderParameterModel_Index
    {
        /// <summary>
        /// 主索引模式：1为主索引模式。0为非主索引模式
        /// </summary>
        public string indexType { get; set; }
        /// <summary>
        /// 接入类型:0序号预约，1分时预约
        /// </summary>
        public string atype { get; set; }
        /// <summary>
        /// 号源序号
        /// </summary>
        public string iid { get; set; }
        /// <summary>
        /// 挂号序号
        /// </summary>
        public string inum { get; set; }
        /// <summary>
        /// 预约号，全局唯一
        /// </summary>
        public string oid { get; set; }
        /// <summary>
        /// 排班标识
        /// </summary>
        public string wid { get; set; }
        /// <summary>
        /// 预约就诊时间  "2011-10-24 10:24"
        /// </summary>
        public string time { get; set; }
        /// <summary>
        /// 身份证
        /// </summary>
        public string card { get; set; }
        /// <summary>
        /// 性别1男2女
        /// </summary>
        public string gender { get; set; }
        /// <summary>
        /// 生日
        /// </summary>
        public string birth { get; set; }
        /// <summary>
        /// 地址
        /// </summary>
        public string addr { get; set; }
        /// <summary>
        /// 类型卡号
        /// </summary>
        public string cid { get; set; }
        /// <summary>
        /// 卡类型1社保卡，3诊疗卡
        /// </summary>
        public string ctype { get; set; }
        /// <summary>
        /// 患者姓名
        /// </summary>
        public string name { get; set; }
        /// <summary>
        /// 患者手机号码
        /// </summary>
        public string tel { get; set; }
        /// <summary>
        /// 患者类别 默认1普通
        /// </summary>
        public string ptype { get; set; }
        /// <summary>
        /// 就诊类型 1.初诊 2.本地复诊 3.本地术后复诊 4.外地复诊 5.外地术后复诊
        /// </summary>
        public string rtype { get; set; }
        /// <summary>
        /// 预定来源，1,12320，2, 12580，3 、app  4无线城市、5网站
        /// </summary>
        public string source { get; set; }
        /// <summary>
        /// 是否预约挂号，1为是，0为否
        /// </summary>
        public string preeflag { get; set; }
       
        /// <summary>
        /// 医生ID add by zhuyr 20170510
        /// </summary>
        public string docid { get; set; }

        /// <summary>
        /// 类型 1成人 2儿童 add by zhuyr 20170510
        /// </summary>
        public string mtype { get; set; }
    }


    [XmlType("Response")]
    public class OrderResponseModel
    {
        /// <summary>
        /// 返回编码
        /// </summary>
        public string head { get; set; }
        /// <summary>
        /// 参数
        /// </summary>
        public OrderResponseReturnModel body { get; set; }
    }

    public class OrderResponseReturnModel
    {
        /// <summary>
        /// 返回编码
        /// </summary>
        public string code { get; set; }
        /// <summary>
        /// 错误信息
        /// </summary>
        public string msg { get; set; }
        /// <summary>
        /// 参数
        /// </summary>
        public OrderModel result { get; set; }
    }

    //[XmlType("Result")]
    public class OrderModel
    {
        public string dcount;

        /// <summary>
        /// 号源序号
        /// </summary>
        public string iid { get; set; }
        /// <summary>
        /// 挂号序号
        /// </summary>
        public string inum { get; set; }
        /// <summary>
        /// 预约号，全局唯一
        /// </summary>
        public string oid { get; set; }
        /// <summary>
        /// 排班标识
        /// </summary>
        public string wid { get; set; }
        /// <summary>
        /// 挂号费
        /// </summary>
        public string price { get; set; }
        /// <summary>
        /// 预约费用
        /// </summary>
        public string ofee { get; set; }
        /// <summary>
        /// 就诊日期  yyyy-MM-dd
        /// </summary>
        public string date { get; set; }
        /// <summary>
        /// 预约时间段  HH:mm-HH:mm
        /// </summary>
        public string time { get; set; }
        /// <summary>
        /// 该排班剩余可预约数
        /// </summary>
        public string count { get; set; }
        /// <summary>
        /// 交易时间
        /// </summary>
        public string tdate { get; set; }
        /// <summary>
        /// 订单ID
        /// </summary>
        public string orderid { get; set; }
        
    }
}
